 <html lang="zh-cn" xmlns：th="http://www.thymeleaf.org" xmlns:th="http://www.w3.org/1999/xhtml">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>导航管理</title>
    <!-- Bootstrap 3.3.7 -->
    <link rel="stylesheet" href="../../../static/admin/bower_components/bootstrap/dist/css/bootstrap.min.css"
          th:href="@{/admin/bower_components/bootstrap/dist/css/bootstrap.min.css}">
</head>
<body>
<table class="table table-hover">
    <thead>
    <tr>
        <td colspan="6">
            <a class="btn btn-primary btn-lg active" href="admin/toEditNav" th:href="@{/admin/toEditNav}">添加数据</a>
        </td>
    </tr>

    <tr>
        <th>#</th>
        <th>导航名称</th>
        <th>target</th>
        <th>url</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="nav:${navList}">
        <td th:text="${nav.id}"></td>
        <td th:text="${nav.name}"></td>
        <td th:text="${nav.target}"></td>
        <td th:text="${nav.url}"></td>
        <td th:text="${nav.status}"></td>
        <td><a th:href="${'/admin/toEditNav?id='+nav.id}"
               style="margin-right: 5px;"><span class="glyphicon glyphicon-pencil"></span></a>&nbsp;&nbsp;&nbsp;&nbsp;<a
                th:href="${'/admin/deleteNav?id='+nav.id} "
                onclick="return confirm('是否要真的删除？')"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
    </tr>
    </tbody>
</table>

</body>
</html>